

import 'package:flutter/material.dart';

class HomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        Container(
          margin: EdgeInsets.fromLTRB(0, 0, 0, 10),
          width: double.infinity,
          child: Text("顶部布局",
            textAlign: TextAlign.center,),
          height: 200,
          color: Colors.greenAccent,
        ),
        Container(
          height: 100,
          child: Row(
            children: [
              Expanded(
                  flex: 2,
                  child: Image.network(
                    "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fwx3.sinaimg.cn%2Flarge%2F007igjqGly4gt3gkoe3nkj60c008075d02.jpg&refer=http%3A%2F%2Fwx3.sinaimg.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1631871184&t=8735bbb05346467ef4682030923df442",
                    fit: BoxFit.cover,
                  )),
              SizedBox(width: 5),
              Expanded(
                flex: 1,
                child:Column(
                  children: [
                    Expanded(
                        flex: 1,
                        child: Container(
                          width: double.infinity,
                          child: Image.network(
                            "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fwx3.sinaimg.cn%2Flarge%2F007igjqGly4gt3gkoe3nkj60c008075d02.jpg&refer=http%3A%2F%2Fwx3.sinaimg.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1631871184&t=8735bbb05346467ef4682030923df442",
                            fit: BoxFit.cover,
                          ),
                        )
                    ),
                    SizedBox(height: 5),
                    Expanded(
                        flex: 1,
                        child: Container(
                          width: double.infinity,
                          child: Image.network(
                            "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fwx3.sinaimg.cn%2Flarge%2F007igjqGly4gt3gkoe3nkj60c008075d02.jpg&refer=http%3A%2F%2Fwx3.sinaimg.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1631871184&t=8735bbb05346467ef4682030923df442",
                            fit: BoxFit.cover,
                          ),
                        )),
                  ],
                ),
              )
            ],
          ),
        )
      ],
    );
  }
}